package com.hzhjhh.view.manageView.menus.accountMng.register;

import javax.swing.JButton;
import com.hzhjhh.view.manageView.menus.accountMng.RegisterDialog;

/**
 * 菜单栏初始化-仓库-账户管理-添加/修改用户-管理员登录弹出框-退出用户弹出框-退出
 * 
 * @author 12083
 *
 */
public class QuitBt {

	/**
	 * 按钮
	 */
	public static JButton btInit(RegisterDialog registerDialog) {
		JButton quit = new JButton();
		quit.setBounds(275, 318, 83, 25);
		quit.setText("退出");

		quit.addActionListener(event -> registerDialog.setVisible(false));
		
		return quit;
	}
}
